func net/http/pprof.serveError
12 uses
net/http/pprof (current package)
pprof.go#L134: func serveError(w http.ResponseWriter, status int, txt string) {
pprof.go#L160: serveError(w, http.StatusInternalServerError,
pprof.go#L186: serveError(w, http.StatusInternalServerError,
pprof.go#L255: serveError(w, http.StatusNotFound, "Unknown profile")
pprof.go#L279: serveError(w, http.StatusBadRequest, `invalid value for "seconds" - must be a positive integer`)
pprof.go#L284: serveError(w, http.StatusBadRequest, `"seconds" parameter is not supported for this profile type`)
pprof.go#L292: serveError(w, http.StatusBadRequest, "seconds and debug params are incompatible")
pprof.go#L297: serveError(w, http.StatusInternalServerError, "failed to collect profile")
pprof.go#L308: serveError(w, http.StatusRequestTimeout, err.Error())
pprof.go#L310: serveError(w, http.StatusInternalServerError, err.Error())
pprof.go#L318: serveError(w, http.StatusInternalServerError, "failed to collect profile")
pprof.go#L328: serveError(w, http.StatusInternalServerError, "failed to compute delta")